package com.csun.cmny.provider.model.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.Alias;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Alias(value = "dmcCsunButtonLocation")
@Table(name = "cn_dmc_csun_button_location")
@EqualsAndHashCode(callSuper = true)
public class DmcCsunButtonLocation extends DeviceBindBaseEntity {

    private static final long serialVersionUID = -1029515023895481827L;

    /**
     * 设备Id
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /**
     * 0-自定义, 1-人, 2-床
     */
    @Column(name = "bind_type")
    private Integer bindType;

    /**
     * 老人Id
     */
    @Column(name = "oldman_id")
    private Integer oldmanId;

    /**
     * 老人姓名
     */
    @Column(name = "oldman_name")
    private String oldmanName;

    /**
     * 床位Id
     */
    @Column(name = "bed_id")
    private Integer bedId;

    @Column(name = "alarm_time")
    private Integer alarmTime;

    /**
     * 绑定位置
     */
    private String location;
}